package com.kun;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = KunBiLiBiLiWeb.class)
public class APIApplication {

    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    @Test
    public void sendMessage() {
        rocketMQTemplate.convertAndSend("Topic-Moments", "Hello, World!");
    }


}
